package com.ballyza;

import java.util.ArrayList;
import java.util.List;

public class CompileResult {

	private final List<LexicalResult> lexicalResult;
	private boolean success;
	private String errorMessage;

	public CompileResult() {
		success = true;
		lexicalResult = new ArrayList<LexicalResult>();
	}

	public void addLexicalResult(LexicalResult result) {
		lexicalResult.add(result);
	}

	public List<LexicalResult> getLexicalResult() {
		return lexicalResult;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}